<?php
class Bootstrap extends Yaf_Bootstrap_Abstract{
	public function _initView(){
		Yaf_Dispatcher::getInstance()->disableView();
	}
	public function _initFunction(){  
        Yaf_Loader::import(Yaf_Application::app()->getConfig()->application->directory . 'common/function.php');  
    }
	public function _initSmarty(Yaf_Dispatcher $dispatcher){
		$conf = new Yaf_Config_Ini(ROOT_PATH . '/conf/smarty.ini','common');
		$conf=$conf->smarty;
		$smarty = new smarty_Adapter(null,$conf);
		$dispatcher->setView($smarty);
    }
}